/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Servicios;

import DAO.SQLDAO;
import Entidad.Usuario;

/**
 *
 * @author Jhon
 */
public class HiloMySQL extends Thread{
    Usuario u;
    SQLDAO dao;
    
    public HiloMySQL(Usuario u,SQLDAO dao){
        this.u=u;
        this.dao=dao;
    }
    
    public void run(){
    StringBuffer hola = new StringBuffer();
    boolean a=dao.create(u, hola);
    if(!a){
        System.out.println("FALLO: " + hola);
    }
    }
}
